//
//  YXReplyCell.m
//  CreditCard
//
//  Created by 杨旭 on 2018/1/20.
//  Copyright © 2018年 杨旭. All rights reserved.
//

#import "YXReplyCell.h"
#import "YXReplyModel.h"

@interface YXReplyCell ()
@property (weak, nonatomic) IBOutlet UIImageView *picImageView;
@property (weak, nonatomic) IBOutlet UILabel *nameLab;
@property (weak, nonatomic) IBOutlet UILabel *timeLab;
@property (weak, nonatomic) IBOutlet UILabel *contentLab;

@end

@implementation YXReplyCell


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setModel:(YXReplyModel *)model {
    _model = model;

    [_picImageView sd_setImageWithURL:[NSURL URLWithString:_model.repliesAgentImg] placeholderImage:[UIImage imageNamed:@""]];
    _nameLab.text = _model.replyAgentName;
    _timeLab.text = [UILabel formateData:_model.createDate];
    _contentLab.text = [NSString stringWithFormat:@"   %@",_model.contents];
    
}


@end
